﻿Ext.define('Happy.cms.tag.metadata.Metadata', {
    extend: 'Happy.metadata.Metadata',
    singleton: true,

    constructor: function () {
        var me = this;

        me.data = {
            namespace: 'Happy.cms',
            name: 'Tag',
            plural: 'Tags',
            urlPrefix: 'Happy/Cms',
            displayName: '标签',
            summaryProperty: 'Name',
            properties: {
                Id: {
                    name: 'Id',
                    dataType: "Guid"
                },
                OptimisticKey: {
                    name: 'OptimisticKey',
                    dataType: "String"
                },
                Name: {
                    name: 'Name',
                    dataType: "String",
                    displayName: '名称'
                },
                Category: {
                    name: 'Category',
                    dataType: "String",
                    displayName: '分类'
                },
                Description: {
                    name: 'Description',
                    dataType: "String",
                    displayName: '描述'
                },
                Order: {
                    name: 'Order',
                    dataType: "Int"
                }
            }
        };

        me.rules = ['aggregate-root', 'orderable'];

        me.callParent(arguments);
    }
});